<?php
class userRoleModel extends dpActiveRecord
{

	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
	{
		return '{user_role}';
	}

	public function primaryKey()
	{
		return 'user_rid';
	}

	public function scopes()
	{
		return array(
			'limit' => array(
				'limit' => '{0}',
			),
		);
	}

	public function relations()
	{
		return array(
			'user' => array(
				'userModel', 'uid', 'uid', 'username, is_manage, is_activation',
			),
			'role' => array(
				'roleModel', 'rid', 'rid', 'role_name',
			),
		);
	}

}

?>